package com.gongpingjialoan.view;

import com.gongpingjialoan.R;

import android.content.Context;
import android.util.AttributeSet;

public class CarLuntaiCheckBox extends CarCheckBox {
	
	public CarLuntaiCheckBox(Context context)
    {
        super(context);
    }
	
	public CarLuntaiCheckBox(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    boolean checked = false;
	
	OnCheckChangeListener onCheckChangeListener;

	public boolean isChecked() {
		return checked;
	}


	public void setChecked(boolean checked) {
		this.checked = checked;
		System.out.println("子");
		invalidate();
		if(checked){
			setImageResource(R.drawable.car_point_f);
			ScaleOutAnimation();
		}else{
			setImageResource(R.drawable.car_luntai_n);
		}
	}
}
